package com.cube.truthseer.entity.user.po;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.cube.truthseer.entity.user.enums.UserStatus;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author koshi
 * @since 2024-03-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private Long userId;

    /**
     * 个性签名
     */
    @TableField("sign")
    private String sign;

    /**
     * 邮箱
     */
    @TableField("email")
    private String email;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 密码
     */
    @TableField("password")
    private String password;

    /**
     * 头像
     */
    @TableField("avatar")
    private String avatar;

    /**
     * 1：vip
     */
    @TableField("isvip")
    private Integer isvip;

    /**
     * 账号名字
     */
    @TableField("name")
    private String name;

    /**
     * 是否注销  注销1；正常：0
     */
    @EnumValue
    @TableField("is_delete")
    private UserStatus isDelete;

    /**
     * 性别;0：男,1：女
     */
    @TableField("sex")
    private Integer sex;

    @TableField("bucket_id")
    private Long bucketId;


}
